<script src="<?php echo base_url('assets/js/add_product.js'); ?>"></script>
<div class="container-crm">
    <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data"  action="<?php echo base_url('products/add'); ?>">
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">Mã hàng hóa</label>
            <div class="col-sm-5">
                <input type="text" name="product_code" class="form-control" id="" placeholder="Mã hàng hóa">
                <input type="hidden" value="" id="image_hidden" name="image_hidden[]" autocomplete="off">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">Tên hàng hóa</label>
            <div class="col-sm-5">
                <input name="product_name" type="text" class="form-control" id="product_name" placeholder="Tên hàng hóa">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">Nhóm hàng</label>
            <div class="col-sm-5">
                <select class="form-control" name="category">
                    <?php if ($cate) { ?>
                        <option value="">Chọn danh mục sản phẩm</option>
                        <?php foreach ($cate as $k => $v) { ?>
                            <option value="<?php echo $k; ?>"><?php echo $v; ?></option>
                        <?php } ?>
                    <?php } else { ?>
                        <option value="">Không có danh mục sản phẩm</option>
                    <?php } ?>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">Giá bán</label>
            <div class="col-sm-5">
                <input name="sale_price" type="text" class="form-control" id="sale_price" placeholder="Giá bán">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">Giá vốn</label>
            <div class="col-sm-5">
                <input name="cost_price" type="text" class="form-control" id="cost_price" placeholder="Giá vốn">
            </div>
        </div>

        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">Tồn kho</label>
            <div class="col-sm-5">
                <input type="in_stock" class="form-control" id="cost_price" placeholder="Tồn kho">
            </div>
        </div>
        
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">Hình ảnh</label>
            <div class="col-sm-5">
                
                
                <input type="file" name="file_name[]" id="file_name" multiple>
            </div>
        </div>
        


        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">Nhập</button>
            </div>
        </div>
    </form>
    
    
    
</div>
